projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78ad523
)
(rmail-summary-goto-msg): Don't call itself
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 1 Nov 2003 16:37:35 +0000
(16:37 +0000)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 1 Nov 2003 16:37:35 +0000
(16:37 +0000)
recursively if the last message is deleted, thus avoiding an
infinite loop.
lisp/mail/rmailsum.el
patch
|
blob
|
history
diff --git
a/lisp/mail/rmailsum.el
b/lisp/mail/rmailsum.el
index cd8d7d67aa467b9c44b79100e542cacc62a1a939..a49b47453d84093b73182ba73dcb0fcef915b5a0 100644
(file)
--- a/
lisp/mail/rmailsum.el
+++ b/
lisp/mail/rmailsum.el
@@
-1074,7
+1074,8
@@
If SKIP-RMAIL, don't do anything to the Rmail buffer."
(if (< n 1)
(progn (message "No preceding message")
(setq n 1)))
- (if (> n total)
+ (if (and (> n total)
+ (> total 0))
(progn (message "No following message")
(goto-char (point-max))
(rmail-summary-goto-msg nil nowarn skip-rmail)))